import { createApp } from 'vue'
import './style.css'
import App from './App.vue'
import pinia from './stores/index'

import router from './router'
console.log(222);

import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import * as ElementPlusIconsVue from '@element-plus/icons-vue'
// import zhCn from "element-plus/lib/locale/lang/zh-cn";//国际化
import zhCn from "element-plus/dist/locale/zh-cn.mjs"


const app=createApp(App)



// //全局注册图标组件
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
    app.component(`${key}`, component)
}
// console.log(ElementPlusIconsVue);
// console.log(Object.entries(ElementPlusIconsVue));


app.use(ElementPlus,{ locale: zhCn }).use(router).use(pinia).mount('#app')
